<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:51:"E:\WWW\waimai/app/wechat/user\view\index\index.html";i:1502679711;s:53:"E:\WWW\waimai/app/wechat/user\view\template\base.html";i:1502096399;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>外卖</title>
    <link rel="stylesheet" href="__STATIC__/css/mui.min.css">
    <link rel="stylesheet" href="__STATIC__/css/ks.css">
    
    <script>
        var root_path = "<?php echo \think\Request::instance()->root(); ?>";
        var require_path = "__STATIC__/app";
    </script>
    <script src="__STATIC__/app/plugin/wechat/weixin.js"></script>
    <script src="__STATIC__/app/require.js"></script>
    <script src="__STATIC__/app/require.config.js"></script>
    <script src="__STATIC__/app/plugin/jquery-3.2.1.min.js"></script>
    <script src="__STATIC__/app/plugin/mui/mui.min.js"></script>
    
</head>
<body>

<footer class="footer">
    <ul>
        <li >
            <a href="<?php echo url('/shop/Shop/index'); ?>">
                <i class="iconfont icon-meishi"></i>
                <p>外卖</p>
            </a>
        </li>
        <!--<li>-->
        <!--<a href="">-->
        <!--<i class="iconfont icon-fujin"></i>-->
        <!--<p>附近</p>-->
        <!--</a>-->
        <!--</li>-->
        <li>
            <a href="<?php echo url('/order/Order/index'); ?>">
                <i class="iconfont icon-dingdantianxiexianxing"></i>
                <p>订单</p>
            </a>
        </li>
        <li>
            <a href="<?php echo url('/cart/Cart/index'); ?>">
                <i class="iconfont icon-gouwuche"></i>
                <p>购物车</p>
            </a>
        </li>
        <li  class="active">
            <a href="javascript:; ">
                <i class="iconfont icon-wode"></i>
                <p>我的</p>
            </a>
        </li>
    </ul>
</footer>


    <header class="header">
        <div>
            我的
        </div>
    </header>

    <div class="pages">
        <div class="center-head">
            <div class="img">
                <?php if($info['headimg']): ?>
                <img src="<?php echo $info['headimg']; ?>" id="headamage"  alt="">
                <?php else: ?>
                <img src="__STATIC__/image/timo.jpg" id="headamage"  alt="">
                <?php endif; ?>
                <p><?php echo $info['nick']; ?></p>
            </div>
            <!--<a><i class="iconfont icon-shezhi"></i></a>-->
        </div>
        <div class="list-form">
            <ul class="title-gray">
                <li></li>
            </ul>
        </div>
        <div class="list-form other has-b">
            <ul>
                <li>
                    <a href="<?php echo url('user/Account/index'); ?>" class="list-form-link">
                        <i class="iconfont icon-zhanghu color-primary"></i>
                        账户信息
                        <span class="pull-right  color-gray" >余额:<?php echo $info['money']; ?>元</span>
                    </a>
                </li>
                <li>
                    <a href="<?php echo url('/order/Order/index'); ?>" class="list-form-link">
                        <i class="iconfont icon-dingdan color-primary"></i>
                        我的订单
                    </a>
                </li>
                <li>
                    <a href="<?php echo url('user/Index/collect'); ?>" class="list-form-link">
                        <i class="iconfont icon-shoucang1 color-primary"></i>
                        店铺收藏
                    </a>
                </li>
                <li>
                    <a href="<?php echo url('user/Account/set_pwd'); ?>" class="list-form-link">
                        <i class="iconfont icon-yue2 color-primary"></i>
                        设置支付密码
                        <?php if(!empty($info['pay_password'])): ?>
                        <span class="pull-right ellipsis text-right  color-gray" style="display: inline-block;width: 120px;">已设置</span>
                        <?php endif; ?>
                    </a>
                </li>
                <li>
                    <a href="<?php echo url('user/Address/index'); ?>" class="list-form-link">
                        <i class="iconfont icon-address color-primary"></i>
                        收货地址
                        <span class="pull-right ellipsis text-right color-gray" style="display: inline-block;width: 120px;"><?php echo $address; ?></span>
                    </a>
                </li>
                <?php if(!empty($info['is_delivery'])): ?>
                <li>
                    <a href="<?php echo url('delivery/Order/index'); ?>" class="list-form-link">
                        <i class="iconfont icon-meishi color-primary"></i>
                        配送员入口
                    </a>
                </li>
                <?php endif; ?>
            </ul>
        </div>
    </div>


</body>
<script>

    if(document.querySelector('.goback')!==null){

        document.querySelector('.goback').addEventListener('tap', function () {
            history.back();
        })
    }
</script>

<script>
    var down_image_url="<?php echo url('user/User/down_image'); ?>";
    require(['user/index'])
</script>

</html>